/**
 * 
 */
package com.hexacta.hrs.domain.employee.history;

import java.util.Date;

import org.vectrics.common.db.AbstractRecordObject;

/**
 * @author gvilla
 * 
 */
public class AssignabilityStatus extends AbstractRecordObject implements EffectiveCondition {

    private Date effectiveDate;

    private Date endDate;

    private boolean available;

    @Override
    public int compareTo(final EffectiveCondition o) {
        return getEffectiveDate().compareTo(o.getEffectiveDate());
    }

    @Override
    public Date getEffectiveDate() {
        return effectiveDate;
    }

    @Override
    public void setEffectiveDate(final Date effectiveDate) {
        this.effectiveDate = effectiveDate;
    }

    public boolean isAvailable() {
        return available;
    }

    public void setAvailable(final boolean available) {
        this.available = available;
    }

    public void setEndDate(final Date endDate) {
        this.endDate = endDate;
    }

    public Date getEndDate() {
        return endDate;
    }
}
